x86: fix pirq path for pvh
authorMukesh Rathor <mukesh.rathor@oracle.com>
Thu, 13 Mar 2014 13:24:19 +0000 (14:24 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 13 Mar 2014 13:24:19 +0000 (14:24 +0100)
Just like hvm, pirq eoi shared page is not there for pvh. pvh should
not touch any pv_domain fields.

Signed-off-by: Mukesh Rathor <mukesh.rathor@oracle.com>
xen/arch/x86/irq.c

index db70077e4e83e6f6cfa8ecfb6f0849753c50cc41..88444bed6f5df8822a553bed8845ffa93e41cdad 100644 (file)
@@ -1068,13 +1068,13 @@ bool_t cpu_has_pending_apic_eoi(void)
 
 static inline void set_pirq_eoi(struct domain *d, unsigned int irq)
 {
-    if ( !is_hvm_domain(d) && d->arch.pv_domain.pirq_eoi_map )
+    if ( is_pv_domain(d) && d->arch.pv_domain.pirq_eoi_map )
         set_bit(irq, d->arch.pv_domain.pirq_eoi_map);
 }
 
 static inline void clear_pirq_eoi(struct domain *d, unsigned int irq)
 {
-    if ( !is_hvm_domain(d) && d->arch.pv_domain.pirq_eoi_map )
+    if ( is_pv_domain(d) && d->arch.pv_domain.pirq_eoi_map )
         clear_bit(irq, d->arch.pv_domain.pirq_eoi_map);
 }